<?php
class b2c_finder_goods_freight{
    var $column_edit = '编辑';
    function column_edit($row){
        return '<a href="index.php?app=b2c&ctl=admin_goods_freight&act=edit&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['freight_id'].'" target="dialog::{title:\''.app::get('b2c')->_('编辑相关运费').'\', width:400, height:200}">'.app::get('b2c')->_('编辑').'</a>';
    }

    var $column_toggle = '启用/关闭';
    function column_toggle($row){
    	// dump($row);die;
    	if(!$row['freight_toggle']){
            $return = '<a href="index.php?app=b2c&ctl=admin_goods_freight&act=toggle&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['freight_id'].'" ">'.app::get('b2c')->_('开启').'</a> ';
        }else{
            $return = '<a href="index.php?app=b2c&ctl=admin_goods_freight&act=toggle&&_finder[finder_id]='.$_GET['_finder']['finder_id'].'&p[0]='.$row['freight_id'].'" ">'.app::get('b2c')->_('关闭').'</a> ';
        }
        return $return;
    }
}
